package com.yz.web.api;

import lombok.Data;

@Data
public class ErrorInfo {

    private int code;

    private String message;


    private String details;


    public ErrorInfo() {

    }

    public ErrorInfo(String message) {
        this.message = message;
    }


    public ErrorInfo(int code) {
        this.code = code;
    }


    public ErrorInfo(int code, String message) {
        this(message);
        this.code = code;
    }


    public ErrorInfo(String message, String details) {
        this(message);
        this.details = details;
    }

    public ErrorInfo(int code, String message, String details) {
        this(message, details);
        this.code = code;
    }
}
